﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TEL.TelPhoneF.Controls
{
    public partial class CreateCone : UserControl
    {
        private int m_StartCone = 0;
        private int m_DugaCone = 0;

        public int StartCone
        {
            get { return m_StartCone; }
            set { m_StartCone = value;
                Invalidate();
            }
        }

        public int DugaCone
        {
            get { return m_DugaCone; }
            set { m_DugaCone = value;
                Invalidate();
            }
        }
        public CreateCone()
        {
            InitializeComponent();
            this.Paint += new PaintEventHandler(CreateCone_Paint);
        }

        void CreateCone_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.DrawArc(new Pen(Color.Red), new Rectangle(new Point(0,0), Size), m_StartCone,m_DugaCone);
        }
    }
}
